package com.oscroll.factory.practice.simple;


public class CarFactory {

    public static Car getCar(String type) {
        switch (type) {
            case "audi":
                return new Audi();
            case "bmw":
                return new BMW();
            default:
                return null;
        }
    }

}
